package com.tjbank.cssys.repository;

import com.tjbank.cssys.domain.CkOrderAchievementForm;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CkOrderAchievementFormMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CkOrderAchievementForm record);

    int insertSelective(CkOrderAchievementForm record);

    CkOrderAchievementForm selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CkOrderAchievementForm record);

    int updateByPrimaryKey(CkOrderAchievementForm record);

    List<CkOrderAchievementForm> selectAll();

    void insertForeach(@Param("addCkOrderAchievementForms") List<CkOrderAchievementForm> addCkOrderAchievementForms);

    void updateForeach(@Param("updateCkOrderAchievementForms") List<CkOrderAchievementForm> updateCkOrderAchievementForms);

    List<CkOrderAchievementForm> select(@Param("collectorId") String collectorId,
                                        @Param("collectorName")String collectorName);

    List<CkOrderAchievementForm> findBySerialNumbers(Map<String, Object> params);
}